package com.machuxin.course.patterns.single;

/**
 * 饿汉式
 */
public class Singleton1 {

    private static final Singleton1 instance = new Singleton1();

    /**
     * 私有化构造方法
     */
    private Singleton1(){}

    public static Singleton1 getInstance(){
        return instance;
    }
}
